<%@ page import="com.situ.web.entity.Student" %><%--
  Created by IntelliJ IDEA.
  User: Gao
  Date: 2021/8/11
  Time: 15:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    ${student}
    <%
        Student student = (Student) request.getAttribute("student");
        // update student set name='zhangsan',age=20,gender='男' where id=2
    %>
    <form action="<%=request.getContextPath()%>/student?method=update" method="post">
        <input type="hidden" name="id" value="<%=student.getId()%>"/>
        名字:<input type="text" name="name" value="<%=student.getName()%>"/><br/>
        年龄:<input type="text" name="age" value="<%=student.getAge()%>"  /><br/>
        性别:<input type="text" name="gender" value="<%=student.getGender()%>" /><br/>
        <input type="submit" value="修改"/>
    </form>
</body>
</html>
